package top.lgd.base;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

/**
 * @author YYJ
 * @version 1.0
 * @since 2023/12/15 19:04
 */
@Getter
@Setter
public class LgdMenu implements Serializable {

    /**
     * 菜单的名字
     */
    private String name;
    /**
     * 路径
     */
    private String path;
    /**
     * 菜单的icon
     */
    private String icon;
    /**
     * component
     */
    private String component;

    private boolean hideInMenu;
    private List<LgdMenu> routes;

    private LgdMenu() {
    }

    public LgdMenu(String name, String path, String icon, String component) {
        this.name = name;
        this.path = path;
        this.icon = icon;
        this.component = component;
        this.hideInMenu = false;
    }

    public LgdMenu(String name, String path, String icon, String component, boolean hideInMenu) {
        this.name = name;
        this.path = path;
        this.icon = icon;
        this.component = component;
        this.hideInMenu = hideInMenu;
    }

}
